<h2>DocumentType</h2>
<g:if test="${flash.notice}">
	${flash.notice}
</g:if>
<g:if test="${flash.error}">
	${flash.error}
</g:if>
<table border="2">
	<tr>
	<th>  <g:message code="default.ID.label" /></th>
		<th><g:message code="default.name.label" /></th>

		<th><g:message code="default.descreption.label" /></th>
		<th><g:message code="default.delete.label" /></th>
 
			<th><g:message code="default.edit.label" /></th>

	</tr>
	<g:each in="${documents}">
		<tr>
			<td><g:link action="show" id="${it.id}">
					${it.id}
				</g:link></td>
			<td>
				${it.name}
			</td>
			<td>
				${it.descreption}
			</td>
			<td>
			<g:link action="deleteDoc" id="${it.id}"><g:message code="default.delete.label" /></g:link>
			</td>
			<td><g:link action="editDoc" id="${it.id}"><g:message code="default.edit.label" /></g:link> </td>
		</tr>
	</g:each>
	
</table>
<g:link action="createDoc" id="${it.id}">Create</g:link>

<g:link action="index" params="[max: max, start:start-max]"> Previous </g:link>
<g:link action="index" params="[max: max, start:start+max]"> Next </g:link><br>